package com.muyu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @ClassName: PeopleEntity
 * @Author: Zirun.Xin
 * @Date: 2025/1/3 13:53
 * @Version: 1.0
 * @Description: 人类信息实体
 */
@Data
@Accessors(chain = true)
@TableName(value = "people")
public class PeopleEntity implements Serializable {

    /**
     * 序列化版本管理
     */
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "name")
    private String name;

    @TableField(value = "sex")
    private String sex;

    @TableField(value = "address")
    private String address;
}
